package com.hnucm.ktstudy.method

//扩展方法
fun String.first():String{
    if(this.isEmpty()){
        return ""
    }
    return this[0].toString()
}

fun main(){
    println("abc".first())
}